package cn.com.jslh.boarpro.main.model;

import android.content.Context;

import cn.com.jslh.boarpro.util.WebService;

/**
 * Created by lenovo on 2018/3/26.
 */

public class NewsWarnModelImpl {
    private Context context;

    public NewsWarnModelImpl(Context context) {
        this.context = context;
    }

    /**
     * 获取消息预警信息
     * @param netSuccessListener
     * @param lineID
     */
    public void getNewsWranData(final WebService.NetSuccessListener netSuccessListener,String lineID){
        new WebService.Builder(context,"TotalWarnList","WSPigWarnFacade")
                .addProperty("lineID",lineID)
                .success(netSuccessListener)
                .post();
    }
}
